<template>
  <div class="common-title-box">
    <i :class="icon"></i>
    <span>{{ title }}</span>
  </div>
</template>
<script>
export default {
  props: {
    title: {
      type: String,
      default: "标题",
    },
    icon: {
      type: String,
      default: "iconfont el-icon-menu",
    },
  },
};
</script>
<style lang="scss" scoped>
.common-title-box {
  i,
  span {
    font-size: 18px;
    color: var(--theme);
  }
  i {
    margin: 0 5px;
  }
}
</style>
